home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3128 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  39 lines

  1. Path: ratree.psu.ac.th!s3610165
  2. From: s3610165@maliwan.psu.ac.th (Sanon CHAOCHAIYAPORN)
  3. Newsgroups: comp.lang.c
  4. Subject: Help!
  5. Date: 26 Jan 1996 09:09:56 GMT
  6. Organization: The Computer Center, Prince of Songkla University, THAILAND
  7. Message-ID: <4ea5p4$j0s@ratree.psu.ac.th>
  8. NNTP-Posting-Host: maliwan.psu.ac.th
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Dear all
  12.  
  13.     There is a file, hi.bat, in my 'h:\data' directory and I try to 
  14. run it by C program but it fail. Please, advice to me?
  15.  
  16. Source:
  17.  
  18. #include<stdio.h>
  19. #include<stdlib.h>
  20. #include<conio.h>
  21. #include<dir.h>
  22.  
  23. main()
  24. {
  25. clrscr();
  26. chdir("h:\data");
  27. system("hi.bat");
  28. getch();
  29. }
  30.  
  31.  
  32. --
  33.         ----------------------------------------------------------------
  34.         |                              |                               |
  35.         |  Sanon Chaochaiyaporn        |  Prince of Songkla University |
  36.     |  s3610165@maliwan.psu.ac.th  |  Hadyai, Thailand             |
  37.         |                              |                               |
  38.     ----------------------------------------------------------------
  39.